<?php

	
	require_once("../Database.php");

	
	class TestArticles{
		
		public $db;
		
		public function __construct($db){
			$this->db = $db;
		}
		
		public function test_getArticles(){
			print("<h3>Test getArticles()</h3>");
			
			$articles = $this->db->db_getArticles();

			foreach($articles as $article){
				foreach($article as $key => $value) {
				    print "$key : $value<br/>";
				}
				
				print("<br/>");
			}
		}
		
	}

?>